

package com.scs.application.modules.base.vo;

import com.scs.application.core.model.TreeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* 医院品类 VO 对象
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@Accessors(chain = true)
public class HospitalCatalogVO extends TreeEntity  implements Serializable {

    private String parentName;

    private String hospitalId;

    /** 商品类型 */
    @NotNull(message = "商品类型不能为空")
    private Integer materialTypeCode;

    /** 品类代码 */
    @NotBlank(message = "品类代码不能为空")
    @Length(min = 1, max = 20, message = "品类代码长度必须介于 1 和 20 之间")
    private String code;

    /** 品类名称 */
    @NotBlank(message = "品类名称不能为空")
    @Length(min = 1, max = 100, message = "品类名称长度必须介于 1 和 100 之间")
    private String name;

    /** 品类全称 */
    @Length(max = 300, message = "品类全称长度必须介于 0 和 300 之间")
    private String fullName;

}
